package com.mz.ieann.aide.city.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * <p>------------------------------------------------------
 * <p> Copyright (C) 2021 zhangmz, All rights reserved.
 * <p> If there is technical discussion, you can contact zhangmz90@foxmail.com
 * <p>------------------------------------------------------
 * <p> des
 * <p>
 *
 * @author Created by Administrator
 * @date on 2021 2021/10/27 21:19
 */
public class House implements Parcelable {

    private double area;
    private String specName;
    private String city;
    private float srcArea;
    private String name;
    private String planId;
    private String commName;
    private String planPic;

    public House(){

    }

    protected House(Parcel in) {
        area = in.readDouble();
        specName = in.readString();
        city = in.readString();
        srcArea = in.readFloat();
        name = in.readString();
        planId = in.readString();
        commName = in.readString();
        planPic = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeDouble(area);
        dest.writeString(specName);
        dest.writeString(city);
        dest.writeFloat(srcArea);
        dest.writeString(name);
        dest.writeString(planId);
        dest.writeString(commName);
        dest.writeString(planPic);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<House> CREATOR = new Creator<House>() {
        @Override
        public House createFromParcel(Parcel in) {
            return new House(in);
        }

        @Override
        public House[] newArray(int size) {
            return new House[size];
        }
    };

    public double getArea() {
        return area;
    }

    public void setArea(double area) {
        this.area = area;
    }

    public String getSpecName() {
        return specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public float getSrcArea() {
        return srcArea;
    }

    public void setSrcArea(float srcArea) {
        this.srcArea = srcArea;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPlanId() {
        return planId;
    }

    public void setPlanId(String planId) {
        this.planId = planId;
    }

    public String getCommName() {
        return commName;
    }

    public void setCommName(String commName) {
        this.commName = commName;
    }

    public String getPlanPic() {
        return planPic;
    }

    public void setPlanPic(String planPic) {
        this.planPic = planPic;
    }

    @Override
    public String toString() {
        return "House{" +
                "area=" + area +
                ", specName='" + specName + '\'' +
                ", city='" + city + '\'' +
                ", srcArea=" + srcArea +
                ", name='" + name + '\'' +
                ", planId='" + planId + '\'' +
                ", commName='" + commName + '\'' +
                ", planPic='" + planPic + '\'' +
                '}';
    }
}
